package com.gopay.common.domain.autosettle;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import com.gopay.common.domain.BaseEntity;


// Generated 2016-01-14  by 张建龙


@Entity
@Table(name = "AS_BANK_SETTLE_DAILY_STATS")
public class AsBankSettleDailyStats extends BaseEntity  {
	
	private static final long serialVersionUID = -3534619481057895558L;
	
	//自动结算当天统计ID
	private long dailyStatsId;
	//结算银行代码
	private String bankCode;
	//结算日期
	private Date settleDate;
	//结算金额
	private BigDecimal settleAmt;
	//创建时间
	private Date createTime;
	//最后的更新时间
	private Date lastUpdateTime;
	
	
	public AsBankSettleDailyStats() {
	}
	
	
	@Id
	@Column(name="DAILY_STATS_ID")
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "AS_BANK_SETTLE_DAILY_STATS_SEQ")
    @SequenceGenerator(name = "AS_BANK_SETTLE_DAILY_STATS_SEQ", allocationSize = 1, initialValue = 1, sequenceName = "AS_BANK_SETTLE_DAILY_STATS_SEQ")
	public long getDailyStatsId() {
		return dailyStatsId;
	}
	public void setDailyStatsId(long dailyStatsId) {
		this.dailyStatsId = dailyStatsId;
	}
	
	@Column(name="BANK_CODE",nullable=false)
	public String getBankCode() {
		return bankCode;
	}
	public void setBankCode(String bankCode) {
		this.bankCode = bankCode;
	}
	
	@Column(name="SETTLE_DATE",nullable=false)
	public Date getSettleDate() {
		return settleDate;
	}
	public void setSettleDate(Date settleDate) {
		this.settleDate = settleDate;
	}
	
	@Column(name="SETTLE_AMT",nullable=false)
	public BigDecimal getSettleAmt() {
		return settleAmt;
	}
	public void setSettleAmt(BigDecimal settleAmt) {
		this.settleAmt = settleAmt;
	}
	
	@Column(name="CREATE_TIME")
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
	@Column(name="LAST_UPDATE_TIME",nullable=false)
	public Date getLastUpdateTime() {
		return lastUpdateTime;
	}
	public void setLastUpdateTime(Date lastUpdateTime) {
		this.lastUpdateTime = lastUpdateTime;
	}
}
